package com.sqxgg.drugstore.threadPool.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
@Data
@Configuration
@ConfigurationProperties(prefix = "sqxgg.poolconfig")
public class PoolConfig {
    // 设置核心线程数
    private int corePoolSiz;
    // 设置最大线程数
    private int maxPoolSize;
    // 设置队列容量
    private int queueCapacity;
    // 设置线程活跃时间（秒）
    private int keepAliveSeconds;
    // 设置默认线程名称
    private String  threadNamePrefix;
}
